package pers.archives.common.ov;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import pers.archives.common.entity.Menu;

import java.io.Serializable;
import java.util.List;

/* 菜单实体类
 *@program:archives-parent
 *@author: 赵浩浩
 *@Time: 2020/9/6  14:11
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class OVMenus implements Serializable {


    private static final long serialVersionUID = -9036440393120864082L;

    private String id;

    private String title;

    private String path;

    private String parent_id;

    private List<OVMenus> children;

    public OVMenus add(Menu menu) {
        this.id = menu.getId();
        this.title = menu.getTitle();
        this.path = menu.getPath();
        this.parent_id = menu.getParent_id();
        return this;
    }
}
